package org.example.erpapiservicespringpgimpl.Dao;

import org.example.erpapicommon.Util.Param.ProductQueryParam;
import org.example.erpapiservicespringpgimpl.entity.ProductEntity;
import org.seasar.doma.Dao;
import org.seasar.doma.Select;
import org.seasar.doma.boot.ConfigAutowireable;
import org.seasar.doma.jdbc.SelectOptions;

import java.util.List;
import java.util.Optional;

@ConfigAutowireable
@Dao
public interface ProductDao {
    @Select
    Optional<ProductEntity> findById(Integer id);
    @Select
    List<ProductEntity> PageProducts(ProductQueryParam param, SelectOptions options);
    @Select
    List<ProductEntity> PageProductsbySupplierId(ProductQueryParam param, Integer supplierId,SelectOptions options);
}
